<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BSMedia
 *
 * @author Administrator
 */
class BSMedia extends BSEntityWithGroup {

    //put your code here
    public $name;
    public $content;
    public $type = 'string';

    public function getContent($data = NULL) {
        return $this->content;
    }

    public function getPropertyToColumnMapList($data = NULL) {
        $mapList = parent::getPropertyToColumnMapList($data);
        $mapList['content'] = 'media_content';
        return $mapList;
    }

    public function save($context = null) {
        if ($this->type != NULL) {
            $this->addType($this->type); //add type
        }
        parent::save($context);
    }

}

?>
